<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	template="template.xhtml">

	<!-- content -->
	<ui:define name="content">

		<div class="section">
			<h1>Change Your Password</h1>
		</div>

		<div class="section">

			<div class="entry errors">
				<h:messages id="messages" globalOnly="true" />
			</div>
			<h:form id="setpassword">
				<fieldset>
					<s:decorate id="PasswordDecorate" template="edit.xhtml">
						<ui:define name="label">Password:</ui:define>
						<ice:inputSecret id="password" value="#{user.password}"
							redisplay="true" required="true" />
					</s:decorate>

					<s:decorate id="VerifyDecorate" template="edit.xhtml">
						<ui:define name="label">Verify:</ui:define>
						<ice:inputSecret id="verify" value="#{changePassword.verify}"
							redisplay="true" required="true" />
					</s:decorate>
					<div class="buttonBox">

						<h:commandButton id="change" value="Change"
							action="#{changePassword.changePassword}" />
						&#160;

						<s:button id="cancel" value="Cancel" view="/main.xhtml" />

					</div>
				</fieldset>

			</h:form>
		</div>

	</ui:define>

	<!-- sidebar -->
	<ui:define name="sidebar">

		<h1>Simple things should be easy</h1>

		<p>(And so should some complex things.) You shouldn't have to
			write four different classes just to change a password. Traditional
			J2EE architectures require that developers spend more time writing
			code to make the frameworks happy, than they ever get to spend
			writing code to make the user happy. Seam lets you reduce the size of
			your code dramatically. And that reduces bugs. And it makes
			refactoring easier. And it makes delivering new functionality
			quicker. Productivity matters. But with Seam, JSF, EJB 3.0 and jBPM,
			you don't need to sacrifice the ability to handle complex problems
			just to achieve great productivity.</p>

	</ui:define>

</ui:composition>
